package com.tengju.user.application.login.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "CheckSmsCodeDTO", description = "校验短信验证码请求参数对象")
public class CheckSmsCodeDTO {

    @ApiModelProperty("区号")
    @NotNull(message = "区号不能为空")
    private String areaCode;

    @ApiModelProperty("手机号")
    @NotNull(message = "手机号不能为空")
    private String mobile;

    @ApiModelProperty("用户类型 1：用户 2：员工")
    @NotNull(message = "用户类型不能为空")
    private Integer userType;

    @ApiModelProperty("操作类型 1：登陆 2：密码变更")
    @NotNull(message = "操作类型不能为空")
    private Integer operationType;

    @ApiModelProperty("验证码")
    @NotNull(message = "验证码不能为空")
    private String code;

}
